<template>
    <div class="infoTop">
      <div class="top">
        <van-icon name="arrow-left" class="left" @click="$router.push('/home')"/>
      </div>
      <div class="info">
        <img :src="user.data.profile.avatarUrl" alt="" class="profileimg">
        <div class="info-right">
            <span class="name">{{user.data.profile.nickname}}</span>
             <span class="signature"> 个性签名：{{user.data.profile.signature}}</span>
             <span class="gender">性别：{{user.data.profile.gender}}</span>
             <!-- <span>{{user.data.profile.city}}</span> -->
             
        </div>
      </div>
  
    </div>
</template>
<script>
import { mapState } from 'vuex'

import {getSubcount} from '@/request/api/home.js'
export default {
    data(){
        return{

        }
    },
    computed:{
        ...mapState(['user'])
    },
    mounted(){

        //this.user = JSON.parse(localStorage.getItem('user'))
        //console.log(this.user)
    },
    methods:{
       
    }
}
</script>
<style lang="less" scoped>
.infoTop{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    .top{
        width: 100%;
        height: 1rem;
        font-size: .4rem;  
        padding: .2rem;
    }
    .info{
        width: 100%;
        height: 4rem;
        display: flex;
        justify-content: space-around;
        padding: .3rem;
        background-color: rgb(248, 248, 248);
        border-radius: .2rem;
        .profileimg{
        width: 1.3rem;
        height: 1.3rem;
        border-radius: 50%;
        margin: 0.2rem;
        }
        .info-right{
            width: 90%;
            height: 1.5rem;
            display: flex;
            justify-content:space-between;
            flex-direction: column;
            .name{
            font-size: .32rem;
             padding-top: .2rem;
            }
            .signature{
                padding-top: .2rem;
                width: 100%;
                height: .5rem;

            }
            .gender{
                 width: 100%;
                 height: .5rem;
                 margin-top: .6rem;
            }
        }
        
    }
    
}
</style>